home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Developer Toolbox 6.1
/
SGI Developer Toolbox 6.1 - Disc 1.iso
/
toolbox
/
src
/
exampleCode
/
opengl
/
GLR
/
glrduck
/
Makefile.6.2
< prev
next >
Wrap
Makefile
|
1996-11-11
|
3KB
|
141 lines
#!smake
#
# Makefile for iglrduck
# Generated by RapidApp 1.2
#
# This makefile follows various conventions used by SGI makefiles
# See the RapidApp User's Guide for more information
# This makefile supports most common default rules, including:
# make (or make all): build the application or library
# make install: install the application or library on the local machine
# make clean: remove .o's, core, etc.
# make clobber: make clean + remove the target application.
# You should be able to customize this Makefile by editing
# only the section between the ##---- markers below.
# Specify additional files, compiler flags, libraries
# by changing the appropriate variables
include $(ROOT)/usr/include/make/commondefs
##---- Start editable code block: definitions
###########################################################
###########################################################
# Modify the following variables to customize this makefile
###########################################################
###########################################################
#
# Local Definitions
#
# Add Additional libraries to USERLIBS:
USERLIBS=
# While developing, leave OPTIMIZER set to -g.
# For delivery, change to -O2
OPTIMIZER= -g
#
# Add any files added outside RapidApp here
#
USERFILES =
#
# Add compiler flags here
#
USERFLAGS =
##---- End editable code block: definitions
# The GL library being used, if needed
GLLIBS= -lGLR -lGL
COMPONENTLIBS= -lInventorXt
#
# The ViewKit stub help library (-lvkhelp) provides a simple
# implementation of the SGI help API. Changing this to -lhelpmsg
# switches to the full IRIS Insight help system
#
HELPLIB= -lvkhelp
MESSAGELIBS=
LICENSELIB=
EZLIB = -lvkEZ
VIEWKITLIBS= $(MESSAGELIBS) $(EZLIB) -lvk $(HELPLIB) $(LICENSELIB) -lSgm -lXpm
# Local C++ options.
# woff 3262 shuts off warnings about arguments that are declared
# but not referenced.
WOFF= -woff 3262
LCXXOPTS = -nostdinc -I. -I$(ROOT)/usr/include/CC -I$(ROOT)/usr/include $(SAFLAG) $(WOFF) $(USERFLAGS)
LLDLIBS = -L$(ROOT)/usr/lib $(USERLIBS) $(COMPONENTLIBS) $(VIEWKITLIBS) $(GLLIBS) -lXm -lXt -lX11 -lgen
# SGI makefiles don't recognize all C++ sufixes, so set up
# the one being used here.
CXXO3=$(CXXO2:.c++=.o)
CXXOALL=$(CXXO3)
#
# Source Files generated by RapidApp. If files are added
# manually, add them to USERFILES
#
BUILDERFILES = main.C\
glrduckMainWindow.C\
SoXtGLRRenderArea.C\
glrduck.C\
$(NULL)
C++FILES = $(BUILDERFILES) $(USERFILES)
#
# The program being built
#
TARGETS=glrduck
APPDEFAULTS=glrduck
default all: $(TARGETS)
$(TARGETS): $(OBJECTS)
$(C++F) $(OPTIMIZER) $(OBJECTS) $(LDFLAGS) -o $@
#
# These flags instruct the compiler to output
# analysis information for cvstatic
# Uncoment to enable
# Be sure to also disable smake if cvstatic is used
#SADIR= tmp.cvdb
#SAFLAG= -sa,$(SADIR)
#$(OBJECTS):$(SADIR)/cvdb.dbd
#$(SADIR)/cvdb.dbd :
# [ -d $(SADIR) ] || mkdir $(SADIR)
# cd $(SADIR); initcvdb.sh
#LDIRT=$(SADIR) vista.taf
#
# To install on the local machine, do 'make install'
#
install: all
$(INSTALL) -F /usr/lib/X11/app-defaults Glrduck
$(INSTALL) -F /usr/sbin glrduck
include $(COMMONRULES)